<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
		
		test();
		
		function test(){
			var a = prompt("输入一个数:");
			var count = 0;
			for (var i = 2; i < a; i++) {
				if(a%i==0){
					count++;
				}
			}
			
			
			if(count==0){
				alert("true");
			}else{
				alert("flase");
			}
		}
			
		</script>
	</body>
</html>
